using System;
using UnityEngine;

static public class LaunchManager
{
    static public void Run()
    {
        Init();
        Start();
    }
    static private void Init()
    {
        TryCall(AddressablesDict.LaunchRun);
    }
    static private void Start()
    {
        TryCall(ChessManager.StartGame);
    }
    static private void TryCall(Action action)
    {
        try
        {
            action();
        }
        catch (Exception e)
        {
            Debug.LogError(e.Message);
        }
    }
}
